<%@ page contentType="text/html;charset=UTF-8" %>

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Levantar Defecto</title>
    <meta name="layout" content="main" />
    <script type="text/javascript" src="${resource(dir:'js',file:'jquery-validate/jquery.validate.js')}"></script>
    <script type="text/javascript" src="${resource(dir:'js',file:'levantar_defecto.js')}"></script>
  </head>
  <body>

    <div>
      <h1>Levantar defecto</h1>
      <g:form id="levantarForm" name="levantarForm" url="[action:'agregar',controller:'defecto ']">
        <table class="tabla-formulario">
          <tr>
            <td class="tabla-label">Sistema</td>
            <td><g:select name="sistema"   from="${sistemas}"   optionKey="id" /></td>
          </tr>
          <tr>
            <td class="tabla-label">Tipo de Error</td>
            <td><g:select name="error" from="${errores}" optionKey="id" /></td>
          </tr>
          <tr>
            <td class="tabla-label">Ingeniero</td>
            <td><g:select name="ingeniero" from="${ingenieros_de_pruebas}" optionKey="id" /></td>
          </tr>
          <tr>
            <td class="tabla-label">Asignado a</td>
            <td><g:select name="asignadoA" from="${ingenieros_de_desarrollo}"   optionKey="id" /></td>
          </tr>
          <tr>
            <td class="tabla-label">Número de Control</td>
            <td><g:textField name="numControl" class="required numeric"/></td>
          </tr>
          <tr>
            <td class="tabla-label">Fecha</td>
            <td><g:textField id="fecha" name="fecha" class="required"/></td>
          </tr>

          <tr>
            <td class="tabla-label">Clase</td>
            <td><g:textField name="clase" /></td>
          </tr>

          <tr>
            <td class="tabla-label">Módulo</td>
            <td><g:textField name="modulo" /></td>
          </tr>
          <tr>
            <td class="tabla-label">Posible Solución</td>
            <td><g:textArea name="posibleSolucion" /></td>
          </tr>
          <tr>
            <td class="tabla-label">Observaciones</td>
            <td><g:textArea name="observaciones" /></td>
          </tr>

          <tr>
            <td class="tabla-label">Justificación</td>
            <td><g:textArea name="justificacion" /></td>
          </tr>
          <tr>
            <td colspan="2"><g:submitButton name="Guardar" value="Guardar" /></td>
          </tr>
        </table>
      </g:form>
    </div>

  </body>
</html>